/**
 * @file 时间轴样式
 * @description 轨迹播放器时间轴、进度条和控制手柄相关样式
 */

/* 时间轴 */
.timeline-container {
  flex: 1;
  margin: 0 10px;
  position: relative;
}

.timeline {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-range-selection {
  position: absolute;
  height: 100%;
  background: rgba(24, 144, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 1;
}

.timeline-progress {
  height: 100%;
  background: transparent;
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  z-index: 2;
}

/* 控制手柄 */
.timeline-handle,
.range-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #1890ff;
  border: 2px solid white;
  z-index: 3;

  &:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(24, 144, 255, 0.2);
  }

  &:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
  }

  &:focus {
    outline: none;
    box-shadow: 0 0 0 6px rgba(24, 144, 255, 0.25);
  }
}

.timeline-handle {
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.15);
}

.range-handle {
  width: 16px;
  height: 16px;
  z-index: 4;
}

/* 时间标记 */
.timeline-markers {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hour-marker {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
  min-width: 20px;
  transition: all 0.2s ease;

  &.active {
    color: #1890ff;
    transform: scale(1.2);
  }
}

/* 时间提示 */
.time-tooltip {
  position: absolute;
  top: -30px;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
} 